package MESService.WebService.Sconit.com;

public class MESServiceSoapProxy implements MESServiceSoap {
  private String _endpoint = null;
  private MESServiceSoap mESServiceSoap = null;
  
  public MESServiceSoapProxy() {
    _initMESServiceSoapProxy();
  }
  
  public MESServiceSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initMESServiceSoapProxy();
  }
  
  private void _initMESServiceSoapProxy() {
    try {
      mESServiceSoap = (new MESServiceLocator()).getMESServiceSoap();
      if (mESServiceSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)mESServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)mESServiceSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (mESServiceSoap != null)
      ((javax.xml.rpc.Stub)mESServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public MESServiceSoap getMESServiceSoap() {
    if (mESServiceSoap == null)
      _initMESServiceSoapProxy();
    return mESServiceSoap;
  }
  
  public WebServiceResult importMSDOperation(MESMSDOperation msdOperation) throws java.rmi.RemoteException{
    if (mESServiceSoap == null)
      _initMESServiceSoapProxy();
    return mESServiceSoap.importMSDOperation(msdOperation);
  }
  
  public WebServiceResult importProcessResourceTest(MESProcessResourceTest processResourceTest) throws java.rmi.RemoteException{
    if (mESServiceSoap == null)
      _initMESServiceSoapProxy();
    return mESServiceSoap.importProcessResourceTest(processResourceTest);
  }
  
  public MESCreateResponse createHu(java.lang.String customerCode, java.lang.String customerName, java.lang.String lotNo, java.lang.String item, java.lang.String itemDesc, java.lang.String manufactureDate, java.lang.String orderNo, java.lang.String uom, java.math.BigDecimal UC, java.math.BigDecimal qty, java.lang.String createUser, java.lang.String createDate, java.lang.String containerCode, java.lang.String bin1, java.lang.String huId) throws java.rmi.RemoteException{
    if (mESServiceSoap == null)
      _initMESServiceSoapProxy();
    return mESServiceSoap.createHu(customerCode, customerName, lotNo, item, itemDesc, manufactureDate, orderNo, uom, UC, qty, createUser, createDate, containerCode, bin1, huId);
  }
  
  
}